package users

// 获取OTP生成二维码的信息
type OtpUrlReq struct {
	Email string `json:"email" validate:"required,email"`
}
type OtpUrlRes struct {
	Url string `json:"url"` // 二维码的url
}

// 注册的请求体和响应体
type RegisterReq struct {
	Email string `json:"email" binding:"required,email"`
	Code  string `json:"code" binding:"required,len=6"`
}

type RegisterRes struct {
}

// 登录
type LoginReq struct {
	Email string `json:"email" binding:"required,email"`
	Code  string `json:"code" binding:"required,len=6"`
}
type LoginRes struct {
}

// 查询
type QueryReq struct {
	Id int64 `json:"id" binding:"required"`
}

type QueryRes struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
}
